package com.donquijote.spring.bean;

import java.util.Date;

/**
 * @author 421527548@qq.com
 * @version V1.0
 * @title
 * @description
 * @date 2022-11-14 14:45
 */
public class Student extends Profession{
    public Student() {
        System.out.println("学生类被在构造方法中创建");
    }

    @Override
    public void doJob() {
        System.out.println("学生做作业");
    }

    private Date birthday;

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    @Override
    public String toString() {
        return "Student{" +
                "birthday=" + birthday +
                '}';
    }
}
